﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Palsta.Core
{
    public class ExpressionParser
    {

        protected static Dictionary<String, String> _operators = new Dictionary<string, string>();
        
        static ExpressionParser()
        {
            _operators.Add("=", "==");
            _operators.Add("!=", "!=");
            //add more operators here
        }

        public static String ConvertToJSExpression(String XslExpression)
        {
            return XslExpression;
        }

        public static IList<String> LisentList(String XslExpression)
        {
            IList<String> list = new List<String>();
            String [] args = XslExpression.Split('=');
            if (args.Length > 0)
            {
                foreach (String arg in args)
                {
                    if (arg.Contains(":"))
                    {
                        list.Add(arg);
                    }
                }
            }
            return list;
        }
    }
}
